/*
 * @Author: thl t15945324431@163.com
 * @Date: 2024-01-26 16:15:06
 * @LastEditors: thl t15945324431@163.com
 * @LastEditTime: 2024-03-20 09:33:44
 * @FilePath: \cw_web\gl\src\request\callOrder\orderList.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react';
// 洗护变更算价
export async function callCareChangePrice(params) {
	return await React.$postJson('/trade/api/b/mhcSalesReturn/careChangePrice', params)
}
// 喂养价格预览
export async function callFeedPreviewPrice(params) {
	return await React.$postJson('/trade/api/c/mhc/order/feed/preview/price', params)
}
// 洗护日期预览
export async function callCarePreviewPrice(params) {
	return await React.$postJson('/trade/api/c/mhc/order/care/preview/price', params)
}

// 宠物详情
export async function callPetArchives(params) {
	return await React.$get('/user/api/b/petArchives/view', params)
}
// 洗护变更订单
export async function callCareApplyChange(params) {
	return await React.$postJson('/trade/api/b/mhcSalesReturn/careApplyChange', params)
}
// 申请的变更前服务信息
export async function callCloseServicerApplyOrder(params) {
	return await React.$postJson('/trade/api/b/mhcSalesReturn/applyOrder', params)
}
// 洗护价格计算
export async function callCalculatePriceWashAndCare(params) {
	return await React.$postJson('/trade/api/c/mhc/order/care/calculate/price', params)
}
// 喂养变更订单
export async function callFeedApplyChange(params) {
	return await React.$postJson('/trade/api/b/mhcSalesReturn/feedApplyChange', params)
}
// 喂养价格计算
export async function callCalculatePrice(params) {
	return await React.$postJson('/trade/api/c/mhc/order/feed/calculate/price', params)
}
// 喂养变更算价
export async function callFeedChangePrice(params) {
	return await React.$postJson('/trade/api/b/mhcSalesReturn/feedChangePrice', params)
}
// 规格信息匹配
export async function callServiceFitServiceSpecs(params) {
	return await React.$postJson('/trade/api/b/service/fitServiceSpecs', params)
}
// 服务预约-根据服务类型和地址获取服务信息
export async function callCloseSelectByAddressAndType(params) {
	return await React.$postJson('/trade/api/c/mhc/service/selectByAddressAndType', params)
}
// web端分页查询宠物
export async function callPetArchivesList(params) {
	return await React.$postJson('/user/api/b/petArchives/list', params)
}
// 重新分配关闭订单接口
export async function callCloseServicerOrder(params) {
	return await React.$postJson('/trade/api/b/service/closeServicerOrder', params)
}
// 上门服务订单列表
export async function callOrderPage(params) {
	return await React.$postJson('/trade/api/b/mhcOrder/page', params)
}
//上门服务普通订单详情
export async function callOrderDetail(params) {
	return await React.$post('/trade/api/b/mhcOrder/orderDetail', params)
}
// 上门服务订单列表导出
export async function callOrderExport(params) {
	return await React.$postJson('/trade/api/b/mhcOrder/export', params)
}
// 查看订单服务详情进度数据
export async function callOrderNegotiation(params) {
	return await React.$postJson('/trade/api/b/negotiation/list', params)
}
// 分配服务者列表
export async function servicerListPage(params) {
	return await React.$postJson('/trade/api/b/mhc/user/order/sift/servicer', params)
}
// 退款原因下拉列表
export async function shopSalesReturnLabelList(params) {
	return await React.$post('/admin/shopSalesReturnLabel/list', params)
}
// 整单分配服务者
export async function allocationWhole(params) {
	return await React.$postJson('/trade/api/b/mhc/user/order/allocation/whole', params)
}
// 订单行分配服务者
export async function allocationSingle(params) {
	return await React.$postJson('/trade/api/b/mhc/user/order/allocation/single', params)
}
// 订单详情强制退款
export async function forceApplyRefund(params) {
	return await React.$postJson('/trade/api/b/mhcSalesReturn/forceApplyRefund', params)
}
//分配服务者后再次分配进行清空
export async function clearAllocation(params) {
	return await React.$postJson('/trade/api/b/mhc/user/order/clear/allocation', params)
}
//服务信息记录详情数据
export async function negotiationList(params) {
	return await React.$postJson('/trade/api/b/negotiation/list', params)
}
// 已分配的服务者列表
export async function serveAllocationList(params) {
	return await React.$postJson('/trade/api/b/mhcServicerOrderDetail/allocationList', params)
}
// 省市区列表数据
export async function getAreaTree() {
	return await React.$get('/manage/api/b/area/getAreaTree')
}